<?php
/** \ExampleCorp\Learning\Block\Widget\Test $block */
$bannerImg = $this->getViewFileUrl('Lyh_Banner::images/banners/banner.jpg');
?>
<style>
  #banner-img{
    width:100%;
    height:300px;
}
</style>
<div class="banner-container">
    <img id='banner-img' src="<?=$bannerImg?>">
</div>